\usemodule[visual]

\setscript[hanzi]
\setupalign[hanging, hz]

\usemodule[zhfontsext]
\usetypescript[cnfontb]
\setupbodyfont[cnfontb,rm,12pt] % 小四号 = 12pt
\mainlanguage[cn]

\setupinterlinespace[line=3.66ex] %line=3.05ex相当于WORD 中的1.0倍行距, 3.66ex相当于WORD 中的1.2倍行距

\setuppapersize[B5]
\setuplayout[width=fit,height=fit,backspace=10mm,cutspace=10mm,topspace=10mm,margin=10mm,header=10mm,footer=10mm]
\setuppagenumbering[location={header,right},style=\bfb]

\starttext
% % % ================== 各级标题初认识 ==================


% % % ================== 代码示例 - 3：自定义层级
\define[1]\myChapterTitle{
    第#1章
}

\definehead[myChapter][chapter]
\setuphead[chapter][page=no,numbercommand=\myChapterTitle,numbercolor=darkred]
\setuphead[myChapter][numbercolor=darkgreen,textcolor=orange]
\myChapter[chapterA]{Chapter A}
\fakewords{10}{20}
\myChapter[chapterB]{Chapter B}
\section[sectionA]{Section}
\fakewords{30}{50}
\chapter[chapterC]{Chapter C}
\section[sectionB]{Another Section}
\fakewords{20}{50}



\stoptext